home *** CD-ROM | disk | FTP | other *** search
Wrap
-- card: 17110 from stack: in -- bmap block id: 17250 -- flags: 4000 -- background id: 7992 -- name: XCMDs, XFCNs, and Globals -- part 1 (field) -- low flags: 01 -- high flags: 0007 -- rect: left=2 top=24 right=311 bottom=510 -- title width / last selected line: 0 -- icon id / first selected line: 0 / 0 -- text alignment: 0 -- font id: 22 -- text size: 10 -- style flags: 0 -- line height: 13 -- part name: -- part 3 (button) -- low flags: 00 -- high flags: 0000 -- rect: left=256 top=314 right=337 bottom=281 -- title width / last selected line: 0 -- icon id / first selected line: 1013 / 1013 -- text alignment: 1 -- font id: 0 -- text size: 12 -- style flags: 0 -- line height: 16 -- part name: Next ----- HyperTalk script ----- on mouseUp go to next card end mouseUp -- part contents for card part 1 ----- text ----- The XCMDs, XFCNs and globals allow you to control the operation of Xrules from HyperTalk scripts. The following XCMDs are included with Xrules: CHAIN direction The "chain" XCMD invokes the inference engine. It is documented in the "Building Your Application" section under "Invoking the Inference Engine". COMPXRULES field_spec {,field_spec} The "compXrules" XCMD compiles the rule base. It is documented in the "Development Stack" section under "Compiler Card". DELECOMP This XCMD deletes the rule base compiler. It is documented in the "Development Stack" section under "Compiler Card". INITXRULES [goal] The "initXrules" XCMD initializes the system. It is documented in the "Building Your Application" section under "Initializing the System". PUSHONSTACK type, id, [use] The "pushOnStack" XCMD pushes an item on the stack. It is documented in the "Building Your Application" section under "Miscellaneous XCMDs and XFCNs". PUTINTOFACT value, fact_id The "putIntoFact" XCMD assigns a value to a fact. It is documented in the "Building Your Application" section under "Asserting Facts". SCROLLTOBOTTOM field The "scrollToBottom" XCMD scrolls to the bottom of a field. It is documented in the "Development Stack" section under "Monitor Card". The following XFCNs are included with Xrules: FACT(fact_id) The "fact" XFCN returns the value of a fact. It is documented in the "Building Your Application" section under "Miscellaneous XCMDs and XFCNs". FINDSTR(starting_position, string_to_find, container_to_search) The "findStr" XFCN locates a string and returns its position. It is documented in the "Development Stack" section under "Compiler Card". POPFROMSTACK () The "popFromStack" XFCN pops the top item from the stack and returns information about that item. It is documented in the "Building Your Application" section under "Miscellaneous XCMDs and XFCNs". The following HyperTalk globals are used by Xrules. You should not use these or any global beginning with "ilsi_" in your applications except as indicated in this document. The use of the following globals is documented in the "Development Stack" section under "Monitor Card". ilsi_trace ilsi_facts ilsi_stack ilsi_step